//
//  SecondViewController.m
//  tabtext
//
//  Created by admin on 16/9/22.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "SecondViewController.h"
#import "LeftchatCell.h"
@interface SecondViewController ()

@end


@implementation SecondViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.estimatedRowHeight = 44;
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 2;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
//    if (indexPath.row % 2 == 0)
//    {
        LeftchatCell *ce = [tableView dequeueReusableCellWithIdentifier:@"leftchat" forIndexPath:indexPath];
//        ce.bubble.image = [ce.bubble.image resizableImageWithCapInsets:UIEdgeInsetsMake(30, 30, 15, 30)];
//        ce.content.text = @"laoban";
        return ce;
//    }
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated. 
}

@end
